package com.xxg;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;


@SpringBootApplication
public class DemoApplication {

    private static final Logger LOGGER = LoggerFactory.getLogger(DemoApplication.class);

    public static void main(String[] args) {

        ApplicationContext context =
                new SpringApplicationBuilder(DemoApplication.class)
                        .web(WebApplicationType.REACTIVE)
                        .build()
                        .run(args);

        for (String n : context.getBeanDefinitionNames()) {
            Object o = context.getBean(n);
            LOGGER.debug("Instance bean name={},class={}", n, o.getClass().getName());
        }

    }
}

